import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import useMenuStore from './modules/menu'
import useUserStore from './modules/user'
import useLoadingStore from './modules/loading'
import useKeepAliveStore from './modules/keepAliveStore'
import useHttpRequest from './modules/httpRequest'

const store = createPinia()
store.use(piniaPluginPersistedstate)
export { useMenuStore, useUserStore, useLoadingStore, useKeepAliveStore, useHttpRequest }
export default store
